<template>
  <view class="page">
		<fu-custom :isBack="true" :isBottom="true" bgColor="bg-white">
			<block slot="content">{{ i18n['注销账号'] }}</block>
		</fu-custom>
		<view class="flex align-center justify-center flex-direction padding-top-190 padding-lr-80">
			<image class="fu-block-180 margin-bottom-lg" :src="imgBaseUrl + 'index/succ.png'"></image>
			<view class="text-333 text-bold fu-fs32 margin-bottom">{{ i18n['注销申请提交成功'] }}</view>
			<view class="text-333 fu-fs28 line-height-44 text-center">{{ i18n['我们工作人员将会对您的账号进行审核，审核通过后，账号将会被注销，请知悉'] }}</view>
		</view>
		
		<view class="btn fu-fs32 text-center bg-theme text-white margin-lr height-88 line-height-88 round" @click="logout">退出登录</view>
  
    <!-- 断网监测 start -->
    <fu-notwork></fu-notwork>
    <!-- 断网监测 end -->
  </view>
</template>

<script>
  export default {
    data() {
      return {
themeColor:'#B82441'
      }
    },
    onLoad() {
    },
    computed: {

    },
    methods: {

	logout() {
				this.$util.showModal({
					title:'提示',
					content: '确定退出当前账号？',
					confirmColor: this.themeColor,
					success: res => {
						if (res.confirm) {
							this.$store.commit('logout');
							uni.switchTab({
								url:'/pages/tab/my/my/index'
							})
							this.$store.dispatch('getCartList');
						}
					}
				});
			},
    },
  }
</script>


<style>
	page {
	  background: #ffffff;
	}
</style>

<style lang="scss" scoped>
  page {
    background: #ffffff;
  }
  // 退出登录按钮 start
  .btn {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 50rpx;
  }
</style>
